import axios from '@/axios';

export default {
  queryDeviceDetail (deviceId) {
    return axios.get('/api/profile-gc/detail?deviceId=' + deviceId);
  },
  queryDeviceHistory (deviceId) {
    return axios.get('/api/profile-gc/getHistory?deviceId=' + deviceId);
  },
  queryDeviceLoginErrorHistory (deviceId) {
    return axios.get('/api/profile-gc/queryDeviceLoginErrorHistory?deviceId=' + deviceId);
  },
  deltWithLoginErr (deviceId) {
    return axios.post('/api/profile-gc/deltWithLoginErr?deviceId=' + deviceId);
  },
  queryDeviceDeepHistory (deviceId, startTime, endTime) {
    return axios.get('/api/profile-gc/deepAnalysis?deviceId=' + deviceId + "&start_time=" + startTime + "&end_time=" + endTime);
  },
  queryDeviceJsonData (deviceId, startTime, endTime) {
    return axios.get('/api/profile-gc/queryDeviceJsonData?deviceId=' + deviceId + "&start_time=" + startTime + "&end_time=" + endTime); 
  }

}